import vhttp from './modle/vueRequest'
import config from '@/config.js'

/* API接口 */
/**
 * vhttp(url,params,httpType,method)
 * @url APIurl的地址。
 * @params 请求的参数。
 * @httpType 请求的类型 GET POST。
 * @method 请求方法 ajax（jsonp) 或者三套 axios1,axios2,axios3 默认axios1。
 * @return Promise;
 * 规范 ： 命名前缀需要 type_*  get_baidu  post_baidu。接口地址需要添加注释.
 */
//示范接口样式
//export const 定义接口名称 = params => vhttp('接口地址', params, 'GET','axios1或者axios2或者axios3或者ajax');

//大屏标题列表
export const topTtitlelist = params => vhttp('/dp/dpTag/getTagByNum', params, 'GET','axios2');
//大屏表格标题列表
export const dpTableList = params => vhttp('/dp/dpTable/list', params, 'GET','axios2');
//大屏表格内容
export const dpTableContentList = params => vhttp('/dp/dpTableContent/list', params, 'GET','axios2');
export const Get_dpRanks_list = params => vhttp('/dp/dpRanks/list', params, 'GET','axios2');
export const Get_dpProportion_list = params => vhttp('/dp/dpBzt/list', params, 'GET','axios2');
//轮播图
export const Get_dpBanner_list = params => vhttp('/dp/dpBanner/list', params, 'GET','axios2');
//各镇基础队伍人均积分排名-分页列表查
export const dpTownRank = params => vhttp('/dp/dpTownRank/list', params, 'GET','axios2');
//小标签配置-分页列表查询
export const dpTagMin = params => vhttp('/dp/dpTagMin/list', params, 'GET','axios2');
//解题队伍满意度评分排名-分页列表查询
export const dpSatisfaction = params => vhttp('/dp/dpSatisfaction/list', params, 'GET','axios2');
//解题队伍解题数量排名-分页列表查询
export const dpProblemSolving = params => vhttp('/dp/dpProblemSolving/list', params, 'GET','axios2');
//各类问题发生总量与办结量对比-分页列表查询
export const dpQuestionAccess = params => vhttp('/dp/dpQuestionAccess/list', params, 'GET','axios2');
//各类问题发生总量与办结量对比-分页列表查询
export const Get_dpCumulativeData_list = params => vhttp('/dp/dpCumulativeData/list', params, 'GET','axios2');
//大屏主标题
export const dpDbtData_list = params => vhttp('/dp/dpDbt/list', params, 'GET','axios2');

//首页概览数据-统计至前一天
export const queryStatisticsOverviewData = params => vhttp('/new/GljscdpNewController/queryStatisticsOverviewData', params, 'GET');
//七大解题队伍办结量
export const queryJtdwBanjieNum = params => vhttp('/new/GljscdpNewController/queryJtdwBanjieNum', params, 'GET');
//张家口驾驶舱满意度分析
export const queryEvaluateInfo = params => vhttp('/new/GljscdpNewController/queryEvaluateInfo', params, 'GET');
//十二大解题中心积分排名
export const queryJtzxIntegralOrder = params => vhttp('/new/GljscdpNewController/queryQdJtzxIntegralOrder', params, 'GET');
//小片长累计协助社区解题数量
export const queryQuestionBanjieInfo = params => vhttp('/new/GljscdpNewController/queryQuestionBanjieInfo', params, 'GET');
//问题详情处理日志-通过问题id查询
export const queryQuestionDetailInfoByQid = params => vhttp('/new/GljscdpNewController/queryQuestionDetailInfoByQid', params, 'GET');
//各街道解题积分排名支持社区下钻
export const queryQuestionIntegralInfo = params => vhttp('/new/GljscdpNewController/queryQuestionIntegralInfo', params, 'GET');
//张家口驾驶舱单日数据分析
export const queryTaskDayInfo = params => vhttp('/new/GljscdpNewController/queryTaskDayInfo', params, 'GET');
//张家口驾驶舱问题类型分析
export const queryTaskTypeCount = params => vhttp('/new/GljscdpNewController/queryTaskTypeCount', params, 'GET');
//张家口驾驶舱待办结事项清单
export const queryUnBanjieInfo = params => vhttp('/new/GljscdpNewController/queryUnBanjieInfo', params, 'GET');
//获取系统区划
export const querySysAreaList = params => vhttp('/new/GljscdpNewController/querySysAreaList', params, 'GET');
//获取问题类型
export const queryQuestionTypeList = params => vhttp('/new/GljscdpNewController/queryQuestionTypeList', params, 'GET');
//三平积分获取楼长、志愿者处理问题量,双重角色取上一级
export const queryRoleQuestionNum = params => vhttp('/new/GljscdpNewController/queryRoleQuestionNum', params, 'GET','axios4');


//新源道-案件热力图-----先放在这里，后续需要仁秋写接口
export const XYDqueryQuestionTaskForMap = params => vhttp('/new/GljscdpNewController/queryQuestionTaskMap', params, 'GET');

//字典接口
export const getDictItems_api = params =>
    vhttp(
        "/sys/dict/getDictItems/" + params.dictCode,
        params,
        "GET",
    );
//新版大标题
export const topTtitlelist2 = params => vhttp('/dp/dpTag/getTagByNum', params, 'GET', 'axios3');
